home *** CD-ROM | disk | FTP | other *** search
- #ifndef _VM_VMCF_H
- #define _VM_VMCF_H
-
- #ifndef _VM_H
- # include <vm.h>
- #endif
-
- #ifndef CONST
- # define CONST
- #endif
-
- extern int VmFileMax;
- extern int VmFileNum;
-
- #define VM_MALLOC(_siz) (VmFuncMalloc)(_siz)
- #define VM_FREE(_ptr) (VmFuncFree)(_ptr)
- #define VM_FOPEN(_fn,_md) (VmFuncFopen)(_fn,_md)
- #define VM_FCLOSE(_fp) (VmFuncFclose)(_fp)
- #define VM_REMOVE(_name) (VmFuncRemove)(_name)
- #define VM_GETDRV() (VmFuncGetdrv)()
- #define VM_ISDELIM(_ch) (VmFuncIsdelim)(_ch)
- #define VM_INGSTT(_stt) { if ( VmFuncIngStt ) (VmFuncIngStt)(_stt);}
-
- #define VMING_DEC (1)
- #define VMING_INC (0)
-
- extern void *(*VmFuncMalloc)(size_t);
- extern void (*VmFuncFree)(void *);
- extern FILE *(*VmFuncFopen)(CONST char *, CONST char *);
- extern int (*VmFuncFclose)(FILE *);
- extern int (*VmFuncRemove)(CONST char *);
- extern int (*VmFuncGetdrv)(void);
- extern int (*VmFuncIsdelim)(int);
- extern void (*VmFuncIngStt)(int);
-
- extern void VM_hdlLink( VM_T *vm, VMHDL_T hdl );
- extern void VM_hdlUnlink( VM_T *vm, VMHDL_T dat );
- extern long VM_fileAlloc( VM_T *vm, size_t siz );
- extern void VM_fileFree( VM_T *vm, long ap );
- extern int VM_fileCheck(VM_T *vm);
-
- #endif
-